﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Global.Tool
{
    public interface ImessageObject
    {
    }
    public static class MessageObject
    {
        public static void START_METHOD<T>(this T t,string methodName) where T: ImessageObject
        {
#if UNITY_EDITOR
            Debug.Log("开始" + t.GetType().Name + ",方法:" + methodName + "==========");
#endif
        }
        public static void END_METHOD<T>(this T t,string methodName) where T: ImessageObject
        {
#if UNITY_EDITOR
            Debug.Log("结束" + t.GetType().Name + ",方法:" + methodName + "==========");
#endif
        }

        public static void PRINT<T> (this T t, string msg) where T : ImessageObject
        {
#if UNITY_EDITOR
            Debug.Log("方法" + t.GetType().Name + ",消息:" + msg);
#endif
        }
    }
}
